# $Id: 006_create_applications.rb 44 2007-11-29 22:56:58Z sigve.indregard $
class CreateApplications < ActiveRecord::Migration
  def self.up
    create_table :application_forms do |t|
      t.column :laiv_id, :integer
      t.column :user_id, :integer
      t.column :wishes, :text
      t.column :comments, :text
      t.column :status, :integer
      t.column :created_at, :datetime
      t.column :updated_at, :datetime
    end

    remove_column :laiv_users, :comments
    remove_column :laiv_users, :context
  end

  def self.down
    drop_table :application_forms
    add_column :laiv_users, :comments, :text
    add_column :laiv_users, :context, :string
  end
end
